algebra trick